<!--日志管理页面-->
<div id="logManager">
  <yu-panel :title="$t('logManager.rzlx')" :hide-filter="false">
    <template slot="right">
      <yu-toolBar>
        <el-button @click="dialogVisible=true" v-if="exportCheck">{{ $t('logManager.dc') }}</el-button>
        <el-button @click="deleteLogInfo" v-if="deleteCheck">{{ $t('logManager.sc') }}</el-button>
      </yu-toolBar>
    </template>
    <template slot="filter">
      <yu-xform v-model="formdata" related-table-name="logtable" form-type="search">
        <yu-xform-group :column="4">
          <yu-xform-item :label="$t('logManager.rzlx')" :placeholder="$t('logManager.rzlx')" ctype="select"
            name="logTypeId" data-code="LOG_TYPE"></yu-xform-item>
          <yu-xform-item :label="$t('logManager.czyh')" :placeholder="$t('logManager.czyh')" ctype="input" name="user">
          </yu-xform-item>
          <yu-xform-item :label="$t('logManager.czdx')" :placeholder="$t('logManager.czdx')" ctype="input"
            name="operObjId"></yu-xform-item>
          <yu-xform-item :label="$t('logManager.czsjc')" :placeholder="$t('logManager.czsjc')" ctype="datepicker"
            name="beginTime" :picker-options="pickerStartOptions"></yu-xform-item>
          <yu-xform-item :label="$t('logManager.czsjz')" :placeholder="$t('logManager.czsjz')" ctype="datepicker"
            name="endTime" :picker-options="pickerEndOptions"></yu-xform-item>
        </yu-xform-group>
      </yu-xform>
    </template>
    <el-dialog :center="true" :title="$t('logManager.ts')" :visible.sync="dialogVisible" size="tiny">
      <span>{{ $t('logManager.sfqrdc') }}</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="exportLog()" type="primary" :title="$t('logManager.bbjys')">{{ $t('logManager.qd') }}
        </el-button>
        <el-button @click="dialogVisible=false">{{ $t('logManager.qx') }}</el-button>
      </span>
    </el-dialog>
    <el-table-x ref="logtable" :checkbox="checkbox" :max-height="height" :data-url="dataUrl" :data-params="dataParams"
      :table-columns="tableColumns" @row-click="getSelectedRow"></el-table-x>
  </yu-panel>
</div>